$OpenBSD: patch-Makefile_am,v 1.1.1.1 2016/11/30 07:44:29 landry Exp $
--- Makefile.am.orig	Wed Nov 16 05:35:31 2016
+++ Makefile.am	Wed Nov 16 05:36:37 2016
@@ -83,7 +83,7 @@ AM_TESTS_ENVIRONMENT		= \
 TESTS_ENVIRONMENT		?= ${AM_TESTS_ENVIRONMENT}
 
 tests/check_%: CFLAGS += ${CHECK_CFLAGS}
-tests/check_%: LDADD += ${CHECK_LIBS} -ldl
+tests/check_%: LDADD += ${CHECK_LIBS}
 tests/check_%: LDFLAGS += -no-install
 
 check_PROGRAMS			= ${TESTS}
